
Ext.define("OrderConvert.view.log.LogGrid",{
    extend: "Ext.grid.Panel",
    alias : 'widget.loggrid',
    requires: [
        "OrderConvert.view.log.LogGridModel"
    ],



    viewModel: {
        type: "log-loggrid"
    },
    bind: '{logStore}',


    columns : [
        { text: '日志编号', dataIndex: 'id', flex: 1,hidden:true },
        { text: '所属功能', dataIndex: 'funcType', flex: 1 ,renderer : function (v) {
            if(v == "0"){
                return "订单在线解析";
            }else if(v == "1"){
                return "PDF管理";
            }else if(v == "2"){
                return "在线表格管理";
            }else if(v == "3"){
                return "转换规则管理";
            }else if(v == "4"){
                return "日志审计";
            }else if(v == "5"){
                return "系统日志";
            }
        }},
        { text: '所操作的文件名称', dataIndex: 'fileName', flex: 1 },
        { text: '操作人', dataIndex: 'modifyBy', flex: 1 },
        { text: '操作时间', dataIndex: 'modifyTime', flex: 1 },
        { text: '操作类型', dataIndex: 'modifyType', flex: 1,renderer : function (v) {
            if(v == "0"){
                return "转换";
            }else if(v == "1"){
                return "上传";
            }else if(v == "2"){
                return "下载";
            }else if(v == "3"){
                return "修改";
            }else if(v == "4"){
                return "删除";
            }
        } }
    ],

    dockedItems: [{
        xtype: 'pagingtoolbar',
        bind: {
            store: '{logStore}'
        },
        dock: 'bottom',
        displayInfo: true
    }]
});
